Loading Data

To start to play with actigraphy data we have to load some data.

We will start here loading some actigraphy data saved with ActStudio

The standard format is pretty simple. There is a header with the trial information that ends on a well defined pattern. We look to find that specific pattern so we can define how many lines should be ignored and then we use pandas to read the file as a standard csv file.

Let's load some data

Now we can plot it

We will be using plotly for the basics examples.

You can also use the pandas plot interface. It is based on Matplotlib.

Actigraphy, most of the time is composed by several sensors and not only activity derived from accelerometers. As an example we can visualize both temperature sensor and activity on the same plot.

Selecting a specific period

Most of the times, the data will contain some extra data on the beggining and on the end of the data that we want to remove. Getting the specific perid we want on python is quite simple. Pandas dataframe provides a simple interface for filtering data.